//
//  BIDMenuView.h
//  商务厅
//
//  Created by mal on 13-12-11.
//  Copyright (c) 2013年 mal. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef struct
{
    int menuWidth;
    int menuHeight;
    int triangleWidth;
    int triangleHeight;
    int triangleToRight;

}BIDMenuAttribute;

@protocol BIDMenuViewDelegate <NSObject>

- (void)selectMenuAtIndex:(int)index;

@end

@interface BIDMenuView : UIView

//菜单中包含的按钮的标题的数组
@property (strong, nonatomic) NSArray *titlesArr;
//按钮数组
@property (strong, nonatomic) NSMutableArray *btnsArr;
@property (assign, nonatomic) id<BIDMenuViewDelegate> delegate;

- (id)initWithFrame:(CGRect)frame menuNameArr:(NSArray*)menuNameArr imgNameArr:(NSArray*)imgNameArr menuAttribute:(BIDMenuAttribute)menuAttribute;

- (void)initView;

- (void)btnDownHandler:(UIButton*)btn;
- (void)btnUpOutsideHandler:(UIButton*)btn;

- (void)setButtonAttribute:(UIButton*)btn text:(NSString*)text ;

@end
